<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // let arr = ['a','b','c','d']
        // arr.splice(arr.length,0,'e')
        // console.log(arr);

        let obj = {
            name: '小明',
            age: 18,
            sex: '男',
            a: 10,
            b: 12
        }
        let obj = {
            name: '小明'
        }
        let c=2
        let a = 5
        let b = 5
        let f= 1
        let d = 7
        for (let k in obj) {
            console.log(k, obj.k, obj[k], typeof k);

        }
    </script>
</body>

</html>